package com.example.rushbuy.mapper;
import org.apache.ibatis.annotations.Param;

import com.example.rushbuy.po.Order;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    Order findOneByItemIdAndUserIdAndIsTimeoutAndPayState(@Param("itemId")Integer itemId,@Param("userId")Integer userId,@Param("isTimeout")Boolean isTimeout,@Param("payState")Integer payState);



}